import request from '@/utils/request'
import { adminHost } from '@/service/config'

// ticket登录
export function login(data) {
  return request({
    url: adminHost + '/operation/api/auth/v1/getAdminInfoByTick',
    method: 'post',
    data
  })
}
// 用token获取账号信息以及菜单
export function loginMainByToken(data) {
  return request({
    url: adminHost + '/operation/api/auth/v1/getMenuInfoByToken',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getUserInfo(data) {
  return request({
    url: `${adminHost}/operation/api/auth/v1/getUserInfoByToken`,
    method: 'post',
    data
  })
}
